/*
 * @Description: 提交成功
 * @Author: iamsmiling
 * @Date: 2021-06-09 22:59:55
 * @LastEditTime: 2021-06-09 23:18:24
 */
import 'package:credit_business_circle/R/R.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

class PublishSuccessPage extends StatelessWidget {
  const PublishSuccessPage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("合作信息发布"),
      ),
      body: SingleChildScrollView(
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.center,
          children: [
            Container(
              alignment: Alignment.center,
              margin: EdgeInsets.only(top: R.dimen.dp78, bottom: R.dimen.dp30),
              child: Image.asset(R.image.publishSuccess),
            ),
            Container(
              child: Text(
                "提交成功",
                style: TextStyle(
                    fontWeight: FontWeight.w600,
                    fontSize: R.dimen.sp20,
                    color: R.color.ff181818),
              ),
            ),
            Container(
              margin: EdgeInsets.only(top: R.dimen.dp20, bottom: R.dimen.dp32),
              child: Text(
                "您的合作信息已成功提交，请耐心等待工作人员审核。",
                style: TextStyle(
                  fontSize: R.dimen.sp13,
                  color: R.color.ff777777,
                ),
              ),
            ),
            Container(
              margin: EdgeInsets.only(
                  left: R.dimen.dp68,
                  right: R.dimen.dp68,
                  bottom: R.dimen.dp50),
              child: Text.rich(TextSpan(
                  text: "工作人员将在",
                  style: TextStyle(fontSize: R.dimen.sp15, height: 2),
                  children: [
                    TextSpan(
                        text: "1", style: TextStyle(color: R.color.ffec4747)),
                    TextSpan(text: "个工作日内完成审核\n审核时间为周一 至 周五9:00-18:00")
                  ])),
            ),
            ElevatedButtonTheme(
                data: ElevatedButtonThemeData(
                  style: ButtonStyle(
                      minimumSize: MaterialStateProperty.all(
                          Size(R.dimen.width - R.dimen.dp68 * 2, R.dimen.dp36)),
                      elevation: MaterialStateProperty.all(0),
                      textStyle: MaterialStateProperty.all(TextStyle(
                          fontSize: R.dimen.sp13,
                          color: R.color.ffffffff,
                          fontWeight: FontWeight.w500)),
                      padding: MaterialStateProperty.all(EdgeInsets.symmetric(
                          vertical: R.dimen.dp12, horizontal: R.dimen.dp40)),
                      shape: MaterialStateProperty.all(RoundedRectangleBorder(
                          borderRadius: BorderRadius.circular(R.dimen.sp4))),
                      backgroundColor:
                          MaterialStateProperty.all(R.color.ff00c28a)),
                ),
                child: Column(
                  children: [
                    Container(
                        margin: EdgeInsets.only(bottom: R.dimen.dp13),
                        child: ElevatedButton(
                            onPressed: Get.back, child: Text("确定"))),
                    ElevatedButton(
                        style: ButtonStyle(
                            backgroundColor:
                                MaterialStateProperty.all(R.color.ffeeeeee)),
                        onPressed: () {},
                        child: Text(
                          "取消",
                          style: TextStyle(color: R.color.ff4a4c59),
                        ))
                  ],
                )),
          ],
        ),
      ),
    );
  }
}
